﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.TaskScheduling.Migrations
{
    /// <inheritdoc />
    public partial class add_table_SamplePreparationTask : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "TS_SamplePreparationTasks",
                schema: "TaskScheduling",
                columns: table => new
                {
                    Id = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false),
                    SampleCode = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false),
                    TaskAssgnTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    SampeWay = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: false),
                    TaskRecptTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    LastOperTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    ExecStas = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TS_SamplePreparationTasks", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "TS_SamplePreparationTasks",
                schema: "TaskScheduling");
        }
    }
}
